home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
This Disc Bytes!
/
Power Computing - The Disc 2 - This Disc Bytes.ISO
/
mac
/
CodeWarrior 7 Lite for 68K
/
MacOS Support
/
Headers
/
ANSI Headers
/
SIOUX.h
< prev
next >
Wrap
Text File
|
1995-08-02
|
2KB
|
76 lines
/*
* File: SIOUX.h
* ©1993-1995 metrowerks Inc. All rights reserved
* Author: Berardino E. Baratta
*
* Content: Interface file for SIOUX, containing all accessible entries ...
*
*/
#ifndef __SIOUX__
#define __SIOUX__
#pragma options align=mac68k
#pragma direct_destruction off
/*
* Structure for holding the SIOUX specific settings ...
* default values are:
* {TRUE, TRUE, TRUE, FALSE, TRUE, FALSE, 4, 80, 24, 0, 0, monaco, 9, normal};
*/
typedef struct tSIOUXSettings {
char initializeTB, /* Do we initialize the ToolBox ... */
standalone, /* Is SIOUX running in standalone mode ... */
setupmenus, /* Do we draw the SIOUX menus ... */
autocloseonquit, /* Do we close the SIOUX window on program termination ... */
asktosaveonclose, /* Do we offer to save on a close ... */
showstatusline; /* Do we draw the status line ... */
short tabspaces, /* if non-zero, replace tabs with 'tabspaces' spaces ... */
columns, rows, /* The initial size of the SIOUX window ... */
toppixel, leftpixel, /* The topleft window position (in pixels) ... */
/* (0,0 centers on main screen) ... */
fontid, fontsize,
fontface; /* SIOUX's font, size and textface (i.e. bold, etc...) ... */
} tSIOUXSettings;
extern tSIOUXSettings SIOUXSettings; /* SIOUX's settings structure ... */
#ifdef __cplusplus
extern "C" {
#endif
/*
* extern short SIOUXHandleOneEvent(EventRecord *initialevent);
*
* Tells SIOUX to handle one event. If initialevent is NULL, then SIOUX
* will poll the eventqueue for an event. For applications which wish to
* use an embedded SIOUX window, call this function at the beginning of
* your eventloop, and pass it your current event ...
*
* EventRecord *userevent: The user's event from their call to Get/WaitNextEvent.
* returns short: Was the event handled by SIOUX?
*/
extern short SIOUXHandleOneEvent(struct EventRecord *userevent);
/*
* extern void SIOUXSetTitle(unsigned char title[256]);
*
* Change the SIOUX window's title ...
*
* unsigned char title[256]: contains a pascal string.
*/
extern void SIOUXSetTitle(unsigned char title[256]);
#ifdef __cplusplus
}
#endif
#pragma options align=reset
#pragma direct_destruction reset
#endif